package edu.nf.takeoutdemo.mapper;

import edu.nf.takeoutdemo.commons.base.BaseMapper;
import edu.nf.takeoutdemo.model.entity.AddressBook;

import java.util.List;

/**
 *
 * @author zjl
 * @date 2025/10/30
 */
public interface AddressBookMapper extends BaseMapper<AddressBook> {
    /**
     * 根据 用户id修改 是否默认地址
     * @param addressBook
     */
    void updateIsDefaultByUserId(AddressBook addressBook);

    List<AddressBook> list(AddressBook addressBook);
}
